package com.lucher.mes.dao;

import java.util.List;

import com.lucher.mes.po.Product;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);
    
    //自定义接口
    List<Product> findByList(Product record);
    List<Product> findByListForPage(Product record);
    int findByCount(Product record);
	Product findByProductcode(String Productcode);
	Product findByProductname(String Productname);

	//根据产线代码获取当前产线上的产品列表
    List<Product> findByLineCode(String linecode);
}